Recreate the assignment below. Remember try to do the assignment yourself first without looking at the code.
A few hints for tonight, remember that you need to parse strings to turn them into numbers, .value
and .innerhtml
are your friend.
Focus on the functionality first, the go for the style points! Good luck!
After you finish the above, if you want to continue to hone your skills, try creating this functional calculator.
WARNING! This challenge could be tough! It uses several things we haven't covered yet.
Take your time. Don't try to do every piece at once. Test as you go. This could take several days to finish.
IF
statement. https://www.w3schools.com/js/js_if_else.aspeval
method. https://www.w3schools.com/jsref/jsref_eval.aspstring.length
property we learned recently. https://www.w3schools.com/jsref/jsref_length_string.aspstring.substring()
method. https://www.w3schools.com/jsref/jsref_substring.asp